package cn.toutatis.sandbox.root.security.service.entity;

import cn.toutatis.common.controllerDepand.EntityBasicAttribute;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

/**
 * <p>
 * 请填写SystemUserRole表注释
 * </p>
 *
 * @author Toutatis_Gc
 * @since 2020-08-13
 */
public class SystemUserRole extends EntityBasicAttribute<SystemUserRole> {

    private static final long serialVersionUID = 1L;

    /**
     * UUID
     */
    private String uuid;

    /**
     * 角色名
     */
    @TableField("roleName")
    private String roleName;

    /**
     * security角色
     */
    @TableField("roleType")
    private String roleType;


    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUuid() {
        return uuid;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getRoleType() {
        return roleType;
    }

    @Override
    protected Serializable pkVal() {
        return this.uuid;
    }

    @Override
    public String toString() {
        return "\r\nSystemUserRole{" +
            "uuid=" + uuid +
            ", roleName=" + roleName +
            ", roleType=" + roleType +
        "}";
    }
}
